package Clases;

public class Mision extends Tarea{
	public int entryA;
	public int entryH;
	public int ambas;
	public String comentario;
	public int usuario;
	public String ip;
	public static int prioridad;
	
	public Mision(){
		super(prioridad);
		this.ambas = 0;
		this.comentario = "";
		this.entryA = 0;
		this.entryH = 0;
		this.ip = "";
		this.usuario = 0;
	}
	
	public Mision(int ambas, String comentario, int entryA, int entryH, String ip, int usuario,int prioridad) {
		super(prioridad);
		this.ambas = ambas;
		this.comentario = comentario;
		this.entryA = entryA;
		this.entryH = entryH;
		this.ip = ip;
		this.usuario = usuario;
	}
	public int getEntryA() {
		return entryA;
	}
	public void setEntryA(int entryA) {
		this.entryA = entryA;
	}
	public int getEntryH() {
		return entryH;
	}
	public void setEntryH(int entryH) {
		this.entryH = entryH;
	}
	public int getAmbas() {
		return ambas;
	}
	public void setAmbas(int ambas) {
		this.ambas = ambas;
	}
	public String getComentario() {
		return comentario;
	}
	public void setComentario(String comentario) {
		this.comentario = comentario;
	}
	public int getUsuario() {
		return usuario;
	}
	public void setUsuario(int usuario) {
		this.usuario = usuario;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	
	public String toString(){
		String s = "";
		if(this.entryA != 0 && this.entryH != 0){
			s = "Mision: "+this.entryA+","+this.entryH;
		}
		if(this.entryA == 0 && this.entryH == 0){
			s = "Mision: "+this.ambas;
		}
		if(this.entryA == 0 && this.entryH != 0){
			s ="Mision: "+this.entryH;
		}
		if(this.entryA != 0 && this.entryH == 0){
			s = "Mision: "+this.entryA;
		}
		
		return s;
	}
	

}
